package com.hl.order.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 规格类型对象 spec_types
 * 
 * @author ruoyi
 * @date 2025-08-13
 */
public class SpecTypes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品规格类型id，主键自增 */
    private Long specTypesId;

    /** 规格类型名称（如份量、常温加冰等） */
    @Excel(name = "规格类型名称", readConverterExp = "如=份量、常温加冰等")
    private String specTypesName;

    /** 是否为必选（1：必选，默认否） */
    @Excel(name = "是否为必选", readConverterExp = "1=：必选，默认否")
    private Integer isRequired;

    public void setSpecTypesId(Long specTypesId) 
    {
        this.specTypesId = specTypesId;
    }

    public Long getSpecTypesId() 
    {
        return specTypesId;
    }

    public void setSpecTypesName(String specTypesName) 
    {
        this.specTypesName = specTypesName;
    }

    public String getSpecTypesName() 
    {
        return specTypesName;
    }

    public void setIsRequired(Integer isRequired) 
    {
        this.isRequired = isRequired;
    }

    public Integer getIsRequired() 
    {
        return isRequired;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("specTypesId", getSpecTypesId())
            .append("specTypesName", getSpecTypesName())
            .append("isRequired", getIsRequired())
            .toString();
    }
}
